package com.example.administrator.baikangxing.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Sushil_Shen on 2017/6/2/0002.
 * Contact: Sushil_shen@163.com
 */

public class SplashAdapter extends FragmentPagerAdapter {

    List<Fragment> mlist = new ArrayList<>();

    public SplashAdapter(FragmentManager fm,List<Fragment> list) {
        super(fm);
        mlist = list;
    }

    @Override
    public Fragment getItem(int position) {
        return mlist.get(position);
    }

    @Override
    public int getCount() {
        return mlist.size();
    }
}
